package com.lm.plat.controller;

import com.google.common.collect.Maps;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/SystemManage")
@Api(tags="SystemManageController",description="系统管理")
public class SystemManageController {

    @ApiOperation(httpMethod="GET",value="加载系统信息",notes="可以附加更细参数，最终返回更改后的配置信息")
    @GetMapping("/loadSystemInfo")
    @ResponseBody
    public Map<String,Object> loadSystemInfo(String inputText){
        HashMap<String, Object> result = Maps.newHashMap();
        result.put("testKey",1);
        result.put("testDate",new Date());
        result.put("inputText",inputText);
        return result;
    }
}
